package io.gitee.hchaojie.day01;

public class DemoOperator {
    public static void main(String[] args) {
        int total = 22;
        
        int num = 5;
        
        int group = total / num;        // 整除

        int remain = total % num;       // 求余
        
        System.out.println(remain);

        int i = 1;

        // 语句和表达式
        // 表达式有返回值

        int k = i++;
        System.out.println(i);
        System.out.println(k);

        k = ++i;
        System.out.println(i);
        System.out.println(k);

        int j = 1;
        j += 2;         // j = (j + 2)
        System.out.println(j);

        int d = (20 << 1) / 3 * (5 + 2);

        System.out.println(Math.pow(2.0, 16.0));
    }
}
